<?php

//服务器和数据库信息
$servername = "localhost";
$username = "root";
$password = "";
$dbName = "mydb";
$tableName = "testt";

//create connection
$conn = new mysqli($servername, $username, $password, $dbName);

//check connection 
if ($conn->connect_error) {
  die('fail to connect' . $conn->connect_error);
}

$sql = "DROP TABLE $tableName ";
if ($conn->query($sql) === true) {
  echo(" success");
}
else {
  echo("fail ".$conn->error);
}